package com.example.cloud.alibaba.seata.order;

import io.seata.spring.annotation.datasource.EnableAutoDataSourceProxy;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.cloud.openfeign.EnableFeignClients;
import org.springframework.context.annotation.ComponentScan;

/**
 * @author Administrator
 * @EnableAutoDataSourceProxy 开启seata事务管理
 * @EnableFeignClients 配置OpenFeign扫描路径
 */
@SpringBootApplication
@EnableAutoDataSourceProxy
@EnableFeignClients(basePackages = "com.example.cloud.alibaba.seata.common.feign")
public class OrderApplication {

    public static void main(String[] args) {
        SpringApplication.run(OrderApplication.class, args);
    }

}
